bool isAlarm(String name){
  if(name.indexOf("报警器") !=-1){
    return true;
  }else{
    return false;
  }
}

String formateByTime(String time){
   var newTime = time.substring(0, 4) + "-" + time.substring(4, 6) + "-" + time.substring(6, 8) + " " + time.substring(8, 10) + ":" + time.substring(10, 12) + ":" + time.substring(12, 14);
  return newTime;
}


String getValueDes(String status){
  if (status == "0") {
    return '阀开';
  } else if (status == "1"){
    return '阀关';
  } else if (status == "9"){
    return '异常';
  }else {
    return '未知';
  }
}